package com.chee.plant.hibernate.object;

import com.chee.plant.hibernate.object.base.BasePlant;

public class Plant extends BasePlant {
	private static final long serialVersionUID = 1L;

	/* [CONSTRUCTOR MARKER BEGIN] */
	public Plant() {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public Plant(java.lang.Integer id) {
		super(id);
	}

	/**
	 * Constructor for required fields
	 */
	public Plant(java.lang.Integer id, java.lang.String name,
			java.lang.String desc, java.lang.Integer attackType,
			java.lang.Integer attackArea, java.lang.Integer attackInterval,
			java.lang.Integer attack, java.lang.Integer defense,
			java.lang.Integer life, java.lang.Integer expGain,
			java.lang.Integer harvest, java.lang.Integer ripeTime,
			java.lang.Integer gropTime) {

		super(id, name, desc, attackType, attackArea, attackInterval, attack,
				defense, life, expGain, harvest, ripeTime, gropTime);
	}

	/* [CONSTRUCTOR MARKER END] */

	public void setDefaults() {
		this.setAttack(0);
		this.setAttackArea(0);
		this.setAttackInterval(0);
		this.setAttackType(0);
		this.setDefense(0);
		this.setDesc("");
		this.setExpGain(0);
		this.setGropTime(0);
		this.setHarvest(0);
		this.setId(0);
		this.setLife(0);
		this.setName("");
		this.setRipeTime(0);
	}

}